package com.crm.system.service.opportunityManager;

import com.crm.common.model.DhPageInfo;
import com.crm.model.entity.customerManager.Competitor;
import com.crm.model.entity.customerManager.DemandAnalysis;

/**
 * 需求分析
 */
public interface CompetitorService {

    /**
     * 商机-商机详情-竞品分析
     * @param pageIndex 页码
     * @param pageSize 分页大小
     * @param sortName 排序列名字
     * @param sortOrder 排序规则
     * @param opportunityId 商机id
     * @return
     */
    DhPageInfo<Competitor> competitorList(Integer pageIndex, Integer pageSize, String sortName, String sortOrder, String opportunityId);

    /**
     * 商机-商机详情-修改竞品分析
     * @param competitorId 竞品分析id
     * @return
     */
    Competitor getCompetitorById(String competitorId);

    /**
     * 商机详情-修改竞品分析
     * @param competitor 竞品分析实体
     * @return
     */
    Boolean updateCompetitor(Competitor competitor);

    /**
     * 商机详情-删除竞品分析
     * @param competitor 竞品分析实体
     * @return
     */
    Boolean deleteCompetitor(Competitor competitor);
}
